//
//  baseRefreshHeader.m
//  HubeiMobileNewsSDK
//
//  Created by sunnysnake on 16/3/31.
//  Copyright © 2016年 cnhubei. All rights reserved.
//

#import "baseRefreshHeader.h"

@implementation baseRefreshHeader


- (void)prepare
{
    [super prepare];
    
//    // 设置普通状态的动画图片
//    NSUInteger index = 3;   //(设置index的值就是 刚刷新完的时候显示的那张图 比如现在是dpdown_3这张图)
//    NSMutableArray *idleImages = [NSMutableArray array];//(idleImages 代表的是下拉过程中展示的所有图片组成的动画效果)
//    for (NSUInteger i = index; i<=17; i++) {
//        UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"dpdown_%zd", i]];
//        if (image) {
//            [idleImages addObject:image];
//        }
//    }
//    //[self setImages:idleImages forState:MJRefreshStateIdle];
//    [self setImages:idleImages duration:idleImages.count*0.1 forState:MJRefreshStateIdle];
//    // 设置即将刷新状态的动画图片（一松开就会刷新的状态）
//    NSMutableArray *refreshingImages = [NSMutableArray array];
//    for (NSUInteger i = 1; i<=20; i++) {
//        UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"dploading_%zd", i]];
//        if (image) {
//            [refreshingImages addObject:image];
//        }
//    }
//    //[self setImages:refreshingImages forState:MJRefreshStatePulling];
//    //[self setImages:refreshingImages duration:idleImages.count*0.05 forState:MJRefreshStatePulling];
//    
//    // 设置正在刷新状态的动画图片
//    //[self setImages:refreshingImages forState:MJRefreshStateRefreshing];
//    [self setImages:refreshingImages duration:idleImages.count*0.05 forState:MJRefreshStateRefreshing];
//    
//    self.lastUpdatedTimeLabel.hidden = YES;
//    self.stateLabel.hidden = YES;
//    self.automaticallyChangeAlpha = YES;
//    self.stateLabel.font = [UIFont boldSystemFontOfSize:13.0];
//    [self setTitle:@"下拉刷新" forState:MJRefreshStateIdle];
//    [self setTitle:@"松开刷新" forState:MJRefreshStatePulling];
//    [self setTitle:@"正在刷新" forState:MJRefreshStateRefreshing];
    
}



@end
